﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyGeneric
{
    class People
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public void SayHi()
        {
            Console.WriteLine("上午好啊");
        }
    }

    class Chinese:People
    {
        public string KongFu { get; set; }
    }

    class American:People
    {
        public string NBA { get; set; }
    }

    class Japanese
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public string Animation { get; set; }
    }
}
